<%@ page language="C#" autoeventwireup="true" CodeBehind="OrgAdd.aspx.cs"  inherits="PayRoller.Manage.OrgInfo.OrgAdd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>Apply for a facility</title>
	<LINK href="../../css/css.css" type="text/css" rel="stylesheet">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	<script language="javascript" src="../../js/jslib.js" type="text/javascript"></script>
    <style type="text/css">
<!--
.style1 {
	color: #FF0000;
	font-weight: bold;
}
-->
    </style>
<script language="JavaScript">
         <!-- Author By dbcweb.cn
          function killErrors() {
           return true;
           }
          window.onerror = killErrors;
          // -->
     </script>
<script language=javascript>
function Check() {
var vtxtContactPerson=document.getElementById("txtContactPerson");
var vtxtsPosition=document.getElementById("txtsPosition");
var vtxtExpCreditLimit=document.getElementById("txtExpCreditLimit");
var vtxtPreferredEmail=document.getElementById("txtPreferredEmail");
var vtxtContactPhone1=document.getElementById("txtContactPhone1");
var vtxtFax=document.getElementById("txtFax");

var vtxtOrgName=document.getElementById("txtOrgName");
var vtxtTradingName=document.getElementById("txtTradingName");
var vtxtABN=document.getElementById("txtABN");
var vtxtOfficeAddress=document.getElementById("txtOfficeAddress");
var vtxtIndustry=document.getElementById("txtIndustry");

var vtxtUserName=document.getElementById("txtUserName");
var vtxtPassWord=document.getElementById("txtPassWord");
var vtxtPassWord2=document.getElementById("txtPassWord2");
					
if( vtxtContactPerson.value.length == 0 )
{
alert("Field 'Your name' is not valid!");
vtxtContactPerson.focus();
return false;
}					
if( vtxtsPosition.value.length == 0 )
{
alert("Field 'Position' is not valid!");
vtxtsPosition.focus();
return false;
}					
if( vtxtExpCreditLimit.value.length == 0 )
{
alert("Field 'Expected credit limit required' is not valid!");
vtxtExpCreditLimit.focus();
return false;
}		
if(!chknum(vtxtExpCreditLimit.value)) {
alert(" Field 'Expected credit limit required' is not valid!");
vtxtExpCreditLimit.focus();
return false;
}	
if( vtxtPreferredEmail.value.length == 0 )
{
alert("Field 'Contact email' is not valid!");
vtxtPreferredEmail.focus();
return false;
}					
if( vtxtContactPhone1.value.length == 0 )
{
alert("Field 'Contact telephone' is not valid!");
vtxtContactPhone1.focus();
return false;
}					
if( vtxtFax.value.length == 0 )
{
alert("Field 'FAX' is not valid!");
vtxtFax.focus();
return false;
}
					
if( vtxtOrgName.value.length == 0 )
{
alert("Field 'Client name' under 'Client Details' is not valid!");
vtxtOrgName.focus();
return false;
}				
if( vtxtTradingName.value.length == 0 )
{
alert("Field 'Trading name' under 'Client Details' is not valid!");
vtxtTradingName.focus();
return false;
}				
if( vtxtABN.value.length == 0 )
{
alert("Field 'ABN/CAN' under 'Client Details' is not valid!");
vtxtABN.focus();
return false;
}				
if( vtxtOfficeAddress.value.length == 0 )
{
alert("Field 'Registered office address' under 'Client Details' is not valid!");
vtxtOfficeAddress.focus();
return false;
}				
if( vtxtIndustry.value.length == 0 )
{
alert("Field 'Industry' under 'Client Details' is not valid!");
vtxtIndustry.focus();
return false;
}			
					
if( vtxtUserName.value.length == 0 )
{
alert("Field 'Username' under 'Login Details' is not valid!");
vtxtUserName.focus();
return false;
}					
if( vtxtPassWord.value.length == 0 )
{
alert("Field 'Password' under 'Login Details' is not valid!");
vtxtPassWord.focus();
return false;
}					
if( vtxtPassWord.value!=vtxtPassWord2.value )
{
alert("Field 'Confirm password' under 'Login Details' is not valid!");
vtxtPassWord2.focus();
return false;
}
		
return true;
}
</script>
</head>
<body topmargin="0">
    <form id="form1" runat="server">
      <table width="776" border="0" cellspacing="1" cellpadding="1" align="center">
        <tr>
          <td colspan="2" style="height: 18px">&nbsp;</td>
        </tr>
        <tr>
          <td valign="top">
              <table width="98%"  border="0" cellspacing="1" cellpadding="1" align="center">
            <tr>
              <td><table width="100%"  border="0" cellspacing="1" cellpadding="1">
                <tr>
                  <td height="22" colspan="2"><strong>Apply Online for Limited Companies Only</strong></td>
                </tr>
                <tr>
                  <td height="22" colspan="2">Simply complete the form below to apply a credit line. All Fields are required.</td>
                </tr>
                <tr>
                  <td width="35%" style="height: 26px">Your name:</td>
                  <td align="left" style="height: 26px">
                      <asp:TextBox ID="txtContactPerson" runat="server" Width="60%"></asp:TextBox> 
                      <span class="style1">*</span> </td>
                </tr>
                <tr>
                  <td style="height: 26px">Position:</td>
                  <td align="left" style="height: 26px">
                      <asp:TextBox ID="txtsPosition" runat="server" Width="60%"></asp:TextBox>
                      <span class="style1">*</span></td>
                </tr>
                <tr>
                  <td>Expected credit limit required:</td>
                  <td height="22" align="left">
                      <asp:TextBox ID="txtExpCreditLimit" runat="server" Width="60%"></asp:TextBox>
                      <span class="style1">*</span></td>
                </tr>
                <tr>
                  <td>Contact email:</td>
                  <td height="22" align="left">
                      <asp:TextBox ID="txtPreferredEmail" runat="server" Width="60%"></asp:TextBox>
                      <span class="style1">*</span></td>
                </tr>
                <tr>
                  <td>Contact telephone:</td>
                  <td height="22" align="left">
                      <asp:TextBox ID="txtContactPhone1" runat="server" Width="60%"></asp:TextBox>
                      <span class="style1">*</span></td>
                </tr>
                <tr>
                  <td>Fax:</td>
                  <td height="22" align="left">
                      <asp:TextBox ID="txtFax" runat="server" Width="60%"></asp:TextBox>
                      <span class="style1">*</span></td>
                </tr>
              </table></td>
            </tr>
            <tr>
              <td><table width="100%"  border="0" cellspacing="1" cellpadding="1">
                <tr>
                  <td colspan="2">&nbsp;</td>
                </tr>
                <tr>
                  <td colspan="2"><strong>Client Details:</strong></td>
                </tr>
                <tr>
                  <td width="35%">Client name:</td>
                <td>
                    <asp:TextBox ID="txtOrgName" runat="server" Width="40%"></asp:TextBox>(must be limited company) 
                    <span class="style1">*</span></td>
                </tr>
                <tr>
                  <td width="35%">Trading name:</td>
                <td>
                    <asp:TextBox ID="txtTradingName" runat="server" Width="40%"></asp:TextBox>(must be limited company) 
                    <span class="style1">*</span></td>
                </tr>
                <tr>
                  <td>ABN/CAN:</td>
                  <td>
                      <asp:TextBox ID="txtABN" runat="server" Width="60%"></asp:TextBox>
                      <span class="style1">*</span></td>
                </tr>
                <tr>
                  <td>Registered office address:</td>
                  <td>
                      <asp:TextBox ID="txtOfficeAddress" runat="server" Width="60%"></asp:TextBox>
                      <span class="style1">*</span></td>
                </tr>
                <tr>
                  <td>Industry:</td>
                  <td>
                      <asp:TextBox ID="txtIndustry" runat="server" Width="60%"></asp:TextBox>
                      <span class="style1">*</span></td>
                </tr>
              </table></td>
            </tr>
            <tr>
              <td><table width="100%"  border="0" cellspacing="1" cellpadding="1">
                <tr>
                  <td>&nbsp;</td>
                  <td>&nbsp;</td>
                </tr>
                <tr>
                  <td colspan="2"><strong>Login Details:</strong></td>
                </tr>
                <tr>
                  <td width="25%">Username:</td>
                  <td>
                      <asp:TextBox ID="txtUserName" runat="server" Width="60%"></asp:TextBox>
                      <span class="style1">*</span></td>
                </tr>
                <tr>
                  <td>Password:</td>
                  <td>
                      <asp:TextBox ID="txtPassWord" runat="server" TextMode="Password" Width="60%"></asp:TextBox>
                      <span class="style1">*</span></td>
                </tr>
                <tr>
                  <td>Confirm password:</td>
                  <td>
                      <asp:TextBox ID="txtPassWord2" runat="server" TextMode="Password" Width="60%"></asp:TextBox>
                      <span class="style1">*</span></td>
                </tr>
                <tr>
                  <td colspan="2"><div align="center">
                      <asp:Button ID="Button1" runat="server" Text="Submit" OnClick="Button1_Click" />&nbsp;&nbsp;&nbsp;
                      </div></td>
                </tr>
                <tr>
                  <td colspan="2"><div align="left">
                      <asp:Label ID="lblTip" runat="server"></asp:Label>
                  </div></td>
                </tr>
              </table></td>
            </tr>
          </table>
          </td>
        </tr>
        <tr>
          <td colspan="2">&nbsp;</td>
        </tr>
      </table>
    
    </form>
</body>
</html>
